package com.skp.shaphan.toolbars;

import java.awt.Dimension;

import javax.swing.JPanel;

import com.skp.shaphan.layout.ToolbarLayout;
import com.skp.shaphan.ui.SQLEditor;

public class SqlEditorToolbar extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1416453640860283263L;

	public SqlEditorToolbar(SQLEditor parent) {
		setLayout(new ToolbarLayout());
		RunButton runButton = new RunButton(parent);
		runButton.setPreferredSize(new Dimension(runButton.getPreferredSize().width, 24));
		add(runButton);
		ParseSqlButton parseSqlButton = new ParseSqlButton(parent);
		parseSqlButton.setPreferredSize(new Dimension(parseSqlButton.getPreferredSize().width, 24));
		add(parseSqlButton);
		this.setMaximumSize(new Dimension(100, 24));
		this.setSize(new Dimension(100, 24));
	}
}
